package com.hjq.fcloud.http.api;

import com.hjq.http.config.IRequestApi;

import java.util.List;
import java.util.Map;

public final class GetListDataApi implements IRequestApi {
    @Override
    public String getApi() {
        return "/searchtree/get_list_data.php";
    }

    public static class DataDTO {
        private String sort;
        private String offset;
        private String limit;
        private int total;
        private String size;
        private String pages;
        private String current;
        private boolean searchCount;
        private List<Map<String,Object>> records;

        public Object getSort() {
            return sort;
        }

        public void setSort(String sort) {
            this.sort = sort;
        }

        public String getOffset() {
            return offset;
        }

        public void setOffset(String offset) {
            this.offset = offset;
        }

        public String getLimit() {
            return limit;
        }

        public void setLimit(String limit) {
            this.limit = limit;
        }

        public int getTotal() {
            return total;
        }

        public void setTotal(int total) {
            this.total = total;
        }

        public String getSize() {
            return size;
        }

        public void setSize(String size) {
            this.size = size;
        }

        public String getPages() {
            return pages;
        }

        public void setPages(String pages) {
            this.pages = pages;
        }

        public String getCurrent() {
            return current;
        }

        public void setCurrent(String current) {
            this.current = current;
        }

        public boolean isSearchCount() {
            return searchCount;
        }

        public void setSearchCount(boolean searchCount) {
            this.searchCount = searchCount;
        }

        public List<Map<String,Object>> getRecords() {
            return records;
        }

        public void setRecords(List<Map<String,Object>> records) {
            this.records = records;
        }

    }
}